package com.jddup.common.pojo;

import javax.sql.DataSource;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by ZZB on 2017/12/4.
 */
public class JddupConfig implements Serializable {
    private Map<String, DataSource> dataSourceMap;
    private Map<String, List<String>> dataSourceScanPackageMap;
    private DataSource defaultDataSource;
    private List<String> defaultEntityScanPackageMap;
    private Boolean openInterval = true;
    private Long intervalTime = 3600L;
    private Boolean openCompare = true;
    private Boolean autoCreateTable = false;

    public Boolean getAutoCreateTable() {
        return autoCreateTable;
    }

    public void setAutoCreateTable(Boolean autoCreateTable) {
        this.autoCreateTable = autoCreateTable;
    }

    public Map<String, DataSource> getDataSourceMap() {
        return dataSourceMap;
    }

    public void setDataSourceMap(Map<String, DataSource> dataSourceMap) {
        this.dataSourceMap = dataSourceMap;
    }

    public Map<String, List<String>> getDataSourceScanPackageMap() {
        return dataSourceScanPackageMap;
    }

    public void setDataSourceScanPackageMap(Map<String, List<String>> dataSourceScanPackageMap) {
        this.dataSourceScanPackageMap = dataSourceScanPackageMap;
    }

    public DataSource getDefaultDataSource() {
        return defaultDataSource;
    }

    public void setDefaultDataSource(DataSource defaultDataSource) {
        this.defaultDataSource = defaultDataSource;
    }

    public List<String> getDefaultEntityScanPackageMap() {
        return defaultEntityScanPackageMap;
    }

    public void setDefaultEntityScanPackageMap(List<String> defaultEntityScanPackageMap) {
        this.defaultEntityScanPackageMap = defaultEntityScanPackageMap;
    }

    public Boolean getOpenInterval() {
        return openInterval;
    }

    public void setOpenInterval(Boolean openInterval) {
        this.openInterval = openInterval;
    }

    public Long getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(Long intervalTime) {
        this.intervalTime = intervalTime;
    }

    public Boolean getOpenCompare() {
        return openCompare;
    }

    public void setOpenCompare(Boolean openCompare) {
        this.openCompare = openCompare;
    }
}
